home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Tutorial Material
/
Basic Tutorial
/
mctest10
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
2KB
|
64 lines
; tutorial example 10 - mctest10
(initdef)
(defsym a '(b c a))
(defsym b '(f e))
(defsym c '(b a))
(defsym d '(a g))
(def-symbol
sax (symbol-retrograde (gen-trans a 4))
clarinet (find-unique
(symbol-retrograde
(gen-trans d 4)))
trumpet (find-change
(symbol-retrograde
(gen-trans c 4)))
violin (symbol-retrograde (gen-trans d 4))
piano (symbol-mix
(gen-trans a 2) (gen-trans b 2)
(gen-trans c 2) (gen-trans d 2))
bass (symbol-retrograde
(find-common
(gen-trans a 4) (gen-trans c 4)))
congas (symbol-retrograde
(fill-pause
(find-common
(gen-trans a 4) (gen-trans c 4))
'(t u tu s u u s u u tu s)))
)
(def-length
sax '(1/16)
clarinet '(1/16)
trumpet '(1/16)
violin '(1/16)
piano '(1/4 1/16 1/8 1/16 -1/8 1/8)
bass '(1/8 1/8 1/4 1/8)
congas '(1/16 1/32 1/32 1/16 1/32 1/16 1/32)
)
(setq tonals (activate-tonality (whole-tone c 5) (chromatic c 6)))
(setq tonals1 (activate-tonality (chromatic c 6) (whole-tone c 5)))
(setq chords (activate-tonality
(c aug 7 1 4) ( f# aug 9 1 3) (e min maj7 1 3)))
(setq bass (activate-tonality (whole-tone c 3) (chromatic c 4)))
(compile-song-p "ccl;output:" 1/8 "part10"
; BARS |-------|-------|-------|-------|
changes tonals " . . . . ."
changes2 tonals1 " . . . . . . . ."
changes3 chords " . . . .. . . . .. "
changes4 bass " . . . . . . . . . "
sax changes "-- ----- --- --- ----- --"
clarinet changes2 " --- --- -- - --- --- --- --"
trumpet changes2 " ---- --- - - -- --- -- -"
violin changes " ----- - - - -- - - - - -"
piano changes3 " - ------- --- -- --- ---- -"
bass changes4 "------------ -----------"
congas mt-32 "------------ -----------"
)